package com.GZX;

import static com.util.Vessel.schedules;

//课表管理
public class Schedule {
    //用户id
    private long uId;

    //课程id
    private int sId;

    //课程名称
    private String sName;

    //授课老师
    private String tName;

    //周日数
    private String wTime;

    //上课时间
    private String sTime;

    //上课地点
    private String sLocation;

    public Schedule() {
    }

    public Schedule(long uId, int sId, String sName, String tName, String wTime, String sTime, String sLocation) {
        this.uId = uId;
        this.sId = sId;
        this.sName = sName;
        this.tName = tName;
        this.wTime = wTime;
        this.sTime = sTime;
        this.sLocation = sLocation;
    }

    public long getuId() {
        return uId;
    }

    public void setuId(long uId) {
        this.uId = uId;
    }

    public int getsId() {
        return sId;
    }

    public void setsId(int sId) {
        this.sId = sId;
    }

    public String getsName() {
        return sName;
    }

    public void setsName(String sName) {
        this.sName = sName;
    }

    public String gettName() {
        return tName;
    }

    public void settName(String tName) {
        this.tName = tName;
    }

    public String getwTime() {
        return wTime;
    }

    public void setwTime(String wTime) {
        this.wTime = wTime;
    }

    public String getsTime() {
        return sTime;
    }

    public void setsTime(String sTime) {
        this.sTime = sTime;
    }

    public String getsLocation() {
        return sLocation;
    }

    public void setsLocation(String sLocation) {
        this.sLocation = sLocation;
    }
    public String toString(){
        return "\t\t\t" + getsId();
    }

    //学生选课
    public static void select(){

    }

    //个人课程表（学生）
    public static void mySchedule(int sId){
        System.out.println("\t\t\t" + "周一" + "\t\t\t" +
                "周二" + "\t\t\t" + "周三" + "\t\t\t" +
                "周四" + "\t\t\t" + "周五" + "\t\t\t" +
                "周六" + "\t\t\t" + "周末");
        for (Schedule schedule :schedules){
            if (schedule.getsId() == sId){
                System.out.println(schedule);
            }
        }
    }

}
